Information used to get this sample working was obtained from the following URL

http://wiki.servicenow.com/index.php?title=REST_API